const express = require("express");
const router = express.Router();
const profilesCtrl = require("../controller/profile");

// 获取用户资料
router.get("/:username", profilesCtrl.getUserProfile);

// 关注用户
router.post("/:username/follow", profilesCtrl.followUser);

// 取消关注用户
router.delete("/:username/follow", profilesCtrl.unfollowUser);

module.exports = router;
